package ops.model.manager;

import java.io.File;

import ops.model.Subscription;

public class SubscriptionManager extends EntityManager<Subscription> {

	private static final File SUBSCRIPTION_FILE = new File("data/subscription.dat");
	
	public SubscriptionManager() {
		super();
	}
	
	@Override
	public File getFile() {
		return SUBSCRIPTION_FILE;
	}

	@Override
	protected Object getKeyForEntity(Subscription element) {
		return element.getCode();
	}
	
	@Override
	public Subscription remove(Object key) {
		// TODO check this out
		return super.remove(key);
	}
}